//
//  ViewController.m
//  字典嵌套字典使用KVC解析
//
//  Created by 周成龙 on 2018/3/12.
//  Copyright © 2018年 XZL. All rights reserved.
//

#import "ViewController.h"

#import "Person.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSDictionary *dict = @{@"name":@"zak zhou", @"height": @(180), @"car":@{@"name": @"大众", @"type": @"SUV"}};
    
//    NSDictionary *dict = @{@"name":@"zak zhou", @"height": @(180)};
    
    Person *p = [Person modelWithDictionary:dict];
    NSLog(@"%@", p);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
